Skip to main content

All Questions

7votes
1answer
277views

Chess position representation with FEN parser

I'm developing a UCI chess engine and as part of my engine I need a position representation that stores the position of every piece on the board and all the information about the game, like castling ...
sayurc's user avatar
3votes
1answer
62views

Quickly read numeric input

Do you have any criticisms or corrections or improvements? I need to read only numbers(and this numbers could be from 0 to 1000000) ...
Оля Швенда's user avatar
2votes
4answers
529views

Taking 2 command line inputs and verifying that they are integers, within the correct range of values

I'm taking 2 command line inputs, which have to be integers between 2 and 1,000,000. These two values are then passed into the getPrimes function, which is just a ...
Data's user avatar
  • 153
4votes
2answers
437views

Reading file into structure

At the time I'm trying to read a quite big file into a C program for later user. The file size is in the range of 800 megabytes containing around 20 million lines of data of the following format: ...
LastSecondsToLive's user avatar
10votes
2answers
130views

Scalability of running commands from user input

Here is some code I have that has been extracted and shrunk down from a project of mine. ...
syb0rg's user avatar
  • 21.9k
12votes
1answer
3kviews

A regular expression parsing library in C

I've created a regular expression (regex) parsing library in C, and would like some feedback on it. Speed is really important to me, but any and all suggestions are acceptable. ...
syb0rg's user avatar
  • 21.9k
24votes
2answers
2kviews

parcel: a JSON parsing library in C

I've created a JSON parsing library in C, and would like some feedback on it (feel free to submit a pull request on GitHub). Any and all suggestions are acceptable, but I would prefer if reviews were ...
syb0rg's user avatar
  • 21.9k
3votes
2answers
796views

Improving Trie Implementation

This is an implementation of a trie, that I will be using on a code editor to parse keywords from a given programming language. I decided to use a trie when I asked this question, and the ...
tay10r's user avatar
12votes
2answers
4kviews

More efficient way to retrieve data from JSON

I am using the jsmn JSON parser (source code) to get extract data from a JSON string. jsmn stores the data in tokens that just point to the token boundaries in the JSON string instead of copying the ...
syb0rg's user avatar
  • 21.9k

close